package com.bd.scm.module.enclosure.controller;


import com.bd.scm.module.enclosure.service.BdEnclosureService;
import com.bd.scm.module.utils.ResultUtil;
import com.bd.utils.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 附件表 前端控制器
 * </p>
 *
 * @author Mason
 * @since 2020-01-04
 */
@RestController
@RequestMapping("/bdEnclosure")
public class BdEnclosureController {

    @Autowired
    private BdEnclosureService bdEnclosureService;


    /**
     * 根据单号查询附件
     * @param orderId
     * @return
     */
    @GetMapping("findEnclosureList")
    public Result findEnclosureList(String orderId) {
        return ResultUtil.ok(bdEnclosureService.findEnclosureList(orderId));
    }

}

